﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>China air sales system</title>
    <link rel="stylesheet" type="text/css" href="<?=site_url("css/admin.css")?>" />
    <link rel="stylesheet" type="text/css" href="<?=base_url()?>css/default.css" />
    <script type="text/javascript" src="<?=base_url()?>js/jquery-1.4.4.min.js"></script>    
    <script type="text/javascript" src="<?=base_url()?>js/validator.js"></script>
    <script type="text/javascript">
	if(window.top!=window)
	{
		window.top.location="<?=site_url('admin/home')?>"	
	}
	
    </script>

</head>
<body>
<div style="width:100%;background:url(<?=site_url("images/flyguam/bgflyguam.jpg")?>);" class="loginbg">
<!-- Save for Web Slices (flyguam.psd) -->
<table id="__01" width="1025"  style="margin:0 auto;" height="664" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td rowspan="4">
			<img src="<?=site_url("images/flyguam/flyguam_01.jpg")?>" width="216" height="269" alt=""></td>
		<td>
			<img src="<?=site_url("images/flyguam/flyguam_02.jpg")?>" width="625" height="131" alt=""></td>
		<td rowspan="3">
			<img src="<?=site_url("images/flyguam/flyguam_03.jpg")?>" width="183" height="262" alt=""></td>
		<td>
			<img src="<?=site_url("images/sp01.gif")?>" width="1" height="131" alt=""></td>
	</tr>
	<tr>
		<td>
			<img src="<?=site_url("images/flyguam/flyguam_04.jpg")?>" width="625" height="78" alt=""></td>
		<td>
			<img src="<?=site_url("images/sp01.gif")?>" width="1" height="78" alt=""></td>
	</tr>
	<tr>
		<td rowspan="3" style="background:url(<?=site_url("images/flyguam/flyguam_05.jpg")?>) no-repeat" width="625" height="179">
		<form name=fm id="formlogin" method=post action="<?=site_url('admin/home/do_adminlogin')?>" onsubmit="return CheckFormSubmit(this);" >
		<?php
		echo form_hidden("from","flyguam/admin");
		?>
		<table border=0 style="margin:20px 0 0 7px" width=100% >
			
			<tr height=35 >
				<td></td>
				<td width=208 align=right><span class=homeText>user account:</span></td>
				<td width=181 ><input type="text" value="flyguam" name="agentname" verify="M" desc="user account " class="txe" ></td>
				<td rowspan=2 align=left ><input type="submit" style="height:70px;width:94px;border:0px;background:url(<?=site_url("images/flyguam/submit.jpg")?>)" value="" /></td>
			</tr>
			<tr height=35 >
				<td></td>
				<td align=right><span class=homeText>user password:</span></td>
				<td><input class="txe" type="password" value="123456" verify="M" desc="user password " name="agentpassword"  ></td>
			</tr>
			
			<tr height=35 >
				<td></td>
				<td align=right><span class=homeText>check code:</span></td>
				<td><input type="text"  name="CheckCode" AUTOCOMPLETE=off verify="M" desc="Check Code " style="width:60px;float:left;margin-right:5px" maxlength=6 class="txe" required="true" >
					<img src="<?php echo site_url('user/yzm_img1')?>" id="ivrLoginVerifier" style="float:left" onclick="change_yzm1(this)" />
					<span id="cvlLoginVerifier" style="color: Red;display:none; float: left; margin-right: 5px;">check code error</span>
				</td>
			</tr>
			<tr height=30 >
				<td colspan=3 align="center" ></td>
			</tr>
			
		</table>	
		</form>
		</td>
		<td>
			<img src="<?=site_url("images/sp01.gif")?>" width="1" height="53" alt=""></td>
	</tr>
	<tr>
		<td rowspan="3">
			<img src="<?=site_url("images/flyguam/flyguam_06.jpg")?>" width="183" height="228" alt=""></td>
		<td>
			<img src="<?=site_url("images/sp01.gif")?>" width="1" height="7" alt=""></td>
	</tr>
	<tr>
		<td rowspan="3">
			<img src="<?=site_url("images/flyguam/flyguam_07.gif")?>" width="216" height="244" alt=""></td>
		<td>
			<img src="<?=site_url("images/sp01.gif")?>" width="1" height="119" alt=""></td>
	</tr>
	<tr>
		<td rowspan="2">
			<img src="<?=site_url("images/flyguam/flyguam_08.jpg")?>" width="625" height="125" alt=""></td>
		<td>
			<img src="<?=site_url("images/sp01.gif")?>" width="1" height="102" alt=""></td>
	</tr>
	<tr>
		<td rowspan="3">
			<img src="<?=site_url("images/flyguam/flyguam_09.jpg")?>" width="183" height="174" alt=""></td>
		<td>
			<img src="<?=site_url("images/sp01.gif")?>" width="1" height="23" alt=""></td>
	</tr>
	<tr>
		<td rowspan="2">
			<img src="<?=site_url("images/flyguam/flyguam_10.jpg")?>" width="216" height="151" alt=""></td>
		<td>
			<img src="<?=site_url("images/flyguam/flyguam_11.jpg")?>" width="625" height="85" alt=""></td>
		<td>
			<img src="<?=site_url("images/sp01.gif")?>" width="1" height="85" alt=""></td>
	</tr>
	<tr>
		<td>
			<img src="<?=site_url("images/flyguam/flyguam_12.jpg")?>" width="625" height="66" alt=""></td>
		<td>
			<img src="<?=site_url("images/sp01.gif")?>" width="1" height="66" alt=""></td>
	</tr>
</table>

</div>
<script language="javascript">
		
	var msg = '<?php echo $error_msg; ?>';
	
	$(document).ready(function() {
		if (msg != 0){
			switch (msg){
				case 'Password_Error' : $('#cvlLoginVerifier').empty().text('User name or password mistake ').show();break;
				case 'verifier1' : $('#cvlLoginVerifier').show();break;
				case 'customer' : $('#cvlLoginUser').show();break;
				default : break;
			}
		}		
	});


	function change_yzm1(obj)
	{
	
	    $(obj).attr('src','<?php echo site_url('user/yzm_img1')?>'+'/'+Math.random());
	}
	
	</script>
</body>
</html>